<?php $this->load->view('common/head');?>
<!-- 头部 -->
<div class="header">
	<div class="headerl headerlhomelf fl">RMP服务邮箱：<b>rmpservice@163.com</b></div>
	<div class="headerr headerlhomerg headerr fr">
		<span class="no1">欢迎！<b><?=$this->user['userName']?>!</b></span>
		<span class="no2"><a href="<?=printUrl('Main','quit')?>">退出系统</a></span>
		<span class="no2"><a href="/password_manage/change_psw.php">修改密码</a></span>
		<span class="no2"><a href="http://mail.fengshenmotor.com/extend/gb/">邮件系统</a></span>
		<span class="no2"><a href="http://www.dflpvmkt.com.cn/forum/upload/">营销论坛</a></span>
	</div>
</div>
<!-- 无意义背景 -->
<?php if ($_SESSION['isQiCheng']=='1'): ?>
        	<div class="nothingbg homebg"><img src="/public/images/indextopQC.jpg"></div>
	<?php else: ?>
	<div class="nothingbg homebg"><img src="/public/images/indextop.jpg"></div>
<?php endif ?>
<!-- 导航栏 -->
<div class="nav">
	<?php if ($_SESSION['isQiCheng']!='1'): ?>
		<div class="navlf"><!--<img src="/public/images/btlf.png">--></div>
		<div class="navrg"><!--<img src="/public/images/btrg.png">--></div>
	<?php endif ?>
	<ul>
			<?php if ($_SESSION['isQiCheng']=='1'): ?>
				<li><a href="/homepage.php?brand=1"><img src="/public/images/navQC01.jpg"><!-- <p>首页</p> --></a></li>
			<?php else: ?>
				<li><a href="/homepage.php?brand=1"><img src="/public/images/nav01.png"><p>首页</p></a></li>
			<?php endif ?>


		<?php if ($_SESSION['isQiCheng']!='1'): ?>
			<li><a href="<?=printUrl('HomePage','rmp2016')?>"><img src="/public/images/nav02.png"><p>RMP2016</p></a></li>
		<?php endif ?>

		<?php if ($_SESSION['isQiCheng']=='1'): ?>
			<li><a href="/bulletin/layout.php?type=13&brand=1"><img src="/public/images/navQC02.jpg"><!-- <p>店面管理专区</p> --></a></li>
			<?php else: ?>
			<li><a href="/bulletin/layout.php?type=13&brand=1"><img src="/public/images/nav03.png"><p>店面管理专区</p></a></li>
		<?php endif ?>

		<?php if ($_SESSION['isQiCheng']!='1'): ?>
			<li><a href="/library/"><img src="/public/images/nav04.png"><p>图书馆</p></a></li>
			<li><a href="/task/"><img src="/public/images/nav05.png"><p>一线任务管理平台</p></a></li>
		<?php endif ?>
			<!-- <li><a href="/task/"><img src="/public/images/nav05.png"><p>一线任务管理平台</p></a></li> 2016.7.29修改 bug= 出现在Nissan模块-->
		<?php if ($_SESSION['isQiCheng']!='1'): ?>
			<li><a href="/DLRupload/advertising_main06.php"><img src="/public/images/nav06.png"><p>专营店上传</p></a></li>
			<li><a href="/communi/"><img src="/public/images/nav07.png"><p>通讯员专区</p></a></li>
		<?php endif ?>
		<?php if ($_SESSION['isQiCheng']!='1'): ?>
			<li><a href="/marketingAcademy/"><img src="/public/images/nav08.png"><p>营销学院</p></a></li>
		<?php endif ?>
		<?php if ($_SESSION['isQiCheng']=='1'): ?>
			<!-- <li><a href="/weekReport/newhead.php"><img src="/public/images/nav08.png"><p>启辰专区</p></a></li>  -->   <!--2016.7.29修改 内容 把启辰专营店变更为启辰专区-->
			<li><a href="/weekReport/newhead.php"><img src="/public/images/navQC03.jpg"><!-- <p>启辰专区</p> --></a></li> 
		<?php endif ?>
		<?php if ($_SESSION['DLRSTATE_SYS']=='1' or $_SESSION['DLRSTATE_SYS']=='11'): ?>
			<?php if ($_SESSION['isQiCheng']=='1'): ?>

				<li><a href="/qirmp2016/"><img src="/public/images/navQC05.jpg"><!-- <p>BTL商城</p> --></a></li>

				<li><a href="http://btl.dongfeng-nissan.com.cn"><img src="/public/images/navQC04.jpg"><!-- <p>基金</p> --></a></li>
			<?php else: ?>
			<li><a href="http://btl.dongfeng-nissan.com.cn"><img src="/public/images/nav09.png"><p>BTL商城</p></a></li>
			<?php endif ?>
			
		<?php else: ?>
			<?php if ($_SESSION['isQiCheng']=='1'): ?>

				<li><a href="/qirmp2016/"><img src="/public/images/navQC05.jpg"><!-- <p>BTL商城</p> --></a></li>

				<li><a href="http://btl.dongfeng-nissan.com.cn"><img src="/public/images/navQC04.jpg"><!-- <p>基金</p> --></a></li>
			<?php else: ?>
				<li><a href="http://btl.dongfeng-nissan.com.cn/bg/"><img src="/public/images/nav09.png"><p>BTL商城</p></a></li>
			<?php endif ?>
			
		<?php endif ?>
	</ul>
</div>
<div class="clb" style="height: 48px;"></div>
<!-- 导航栏结束 -->
<!-- 内容 -->
<div class="homepagebox">
	<!--内容左边开始-->
	<div class="homepageboxLeft">
		<!--重要公告开始-->
		<div class="notice">
			<div class="notice_top">
				<span class="notice_toplf fl">重要公告</span>
				<span class="notice_toprg fr"><a href="/news/index.php?type=2">查看详细</a></span>
			</div>
			<div class="leftMain">
				<div class="lefttitle">
					<div class="lefttitle1">最新工作公告信息，提示填写反馈表等紧急的事项，最新下载提示</div>
					<div class="lefttitle2">点击量</div>
					<div class="lefttitle3">时间日期</div>
				</div>
				<div class="leftlist">
					<ul>
						<?php foreach ($importNoticeList as $k => $v): ?>
						<li>
							<?php if ($_SESSION['isQiCheng']=='1'): ?>
							<i class="threejiao"></i>
							<?php endif ?>
							<div class="leftnoa1"><a href="/news/click_redirect.php?id=<?=$v["NewsID"]?>&type=<?=$v["NewsClass"]?>"><?=msubstr($v["NewsTitle"],0,70)?></a></div>
							<div class="leftnoa2"><?=$v['clickCount']?$v['clickCount']:0 ?></div>
							<div class="leftnoa3"><?=$v["NewsDate"]?></div>
						</li>
						<?php endforeach ?>
					</ul>
				</div>		
			</div>
		</div>
		<!--重要公告结束-->
		<!--重要新闻开始-->
		<div class="notice news">
			<div class="notice_top">
				<span class="notice_toplf fl">重要新闻</span>
				<span class="notice_toprg fr"><a href="/news/index.php?type=1">查看详细</a></span>
			</div>
			<div class="leftMain">
				<div class="lefttitle">
					<div class="lefttitle1">最新新闻</div>
					<div class="lefttitle2">点击量</div>
					<div class="lefttitle3">时间日期</div>
				</div>
				<div class="leftlist leftlist2">
					<ul>
						<?php foreach ($importNewsList as $k => $v): ?>
						<li>
							<?php if ($_SESSION['isQiCheng']=='1'): ?>
							<i class="threejiao"></i>
							<?php endif ?>
							<div class="leftnoa1"><a href="/news/click_redirect.php?id=<?=$v["NewsID"]?>&type=<?=$v["NewsClass"]?>"><?=msubstr($v["NewsTitle"],0,72)?></a></div>
							<div class="leftnoa2"><?=$v['clickCount']?$v['clickCount']:0 ?></div>
							<div class="leftnoa3"><?=$v["NewsDate"]?></div>
						</li>
						<?php endforeach ?>
					</ul>
				</div>
				
				
			</div>
			
		</div>
		<!--重要新闻结束-->
	</div>
	<!--内容左边结束-->
	<!--内容右边开始-->
	<div class="homepageboxRight">
		<ul>
		<?php if ($_SESSION['isQiCheng']!='1'): ?>
			
			<li class="num num1">
				<a href="/tianlai">
					<i></i>
					<div class="boxrighttxt boxrighttxt2">
						新天籁
					    <p>上市专题页</p>
					</div>
				</a>	
			</li>
		<?php endif ?>
			<li class="num num2">
				<a href="/precinct/business.php?brand=<?php echo $brand;?>">
					<i></i>
					<div class="boxrighttxt">
						市场部专区
					</div>
				</a>
			</li>
			<?php if ($_SESSION['isQiCheng']!='1'): ?>
			<li class="num num3">
				<a href="/investigation/">
					<i></i>
					<div class="boxrighttxt">
						销售部专区
					</div>
				</a>
			</li>
			<li class="num num4">
				<a href="/knowledge/coc.php?type=1&menu=1&id=1">
					<i></i>
					<div class="boxrighttxt">
						数字营销部专区
					</div>
				</a>
			</li>
			<li class="num num5">
				<a href="<?=printUrl('HomePage','rmp2015')?>">
					<i></i>
					<div class="boxrighttxt">
						RMP2015
					</div>
				</a>
			</li>
			<li class="num num6">
				<a href="/bc2015">
					<i></i>
					<div class="boxrighttxt boxrighttxt2">
						百县强基
						<p>2015年申报与结算窗口</p>
					</div>
				</a>		
			</li>
			<?php endif ?>
			<!-- <li class="num num4">
				<a href="/knowledge/coc.php?type=1&menu=1&id=1">
					<i></i>
					<div class="boxrighttxt">
						数字营销部专区
					</div>
				</a>
			</li>
			<li class="num num5">
				<a href="<?=printUrl('HomePage','rmp2015')?>">
					<i></i>
					<div class="boxrighttxt">
						RMP2015
					</div>
				</a>
			</li>
			<li class="num num6">
				<a href="/bc2015">
					<i></i>
					<div class="boxrighttxt boxrighttxt2">
						百县强基
						<p>2015年申报与结算窗口</p>
					</div>
				</a>		
			</li> 2016.7.29修改 bug= 出现在Nissan模块 -->
		</ul>
	</div>
	<!--内容右边结束-->
</div>
<!-- 内容 结束-->
<?php $this->load->view('common/copyright');?>
<script type="text/javascript">
	$(document).ready(function(){
	  $(".leftlist ul li:odd").css("background-color","#ebeaea");
	  $(".leftlist2 ul li").css("background-color","#FFF");
	  $(".leftlist2 ul li:odd").css("background-color","#ebeaea");
	  
//	  右边导航
      <?php if ($_SESSION['isQiCheng']!='1'): ?>
      $(".homepageboxRight ul li").mouseover(function(){
      	 var numd = $(this).index();
         console.log(numd);
         //$(".homepageboxRight ul li").eq(0).find("i").css("background-position","0px 0px");
      	 $(this).addClass("cur").siblings("li").removeClass("cur");
      	 $(".homepageboxRight ul li").eq(numd).find("i").css("background-position","-54px"+" "+(-numd)*54+"px");
      });
      $(".homepageboxRight ul li").mouseout(function(){
      	 var numd = $(this).index();
         console.log(numd);
      	 $(this).removeClass("cur");
      	 $(".homepageboxRight ul li").eq(numd).find("i").css("background-position","0px"+" "+(-numd)*54+"px");
      });
      <?php endif ?>
         
    });
 //    导航   
$(window).load(function() {
    $(".nav ul li:last").css("margin-right","0px");
	var rnum=$(".nav ul li").size();
	var cnum=0;
	$(".nav ul").width(rnum*588+rnum*60);
	$(".navrg").click(function(){
//		alert("aa");
		cnum++;
		if(cnum>(rnum-4)){
		cnum=0	
		}
		$(".nav ul").animate({"left":-(cnum*134+cnum*60)},300);
	});
	$(".navlf").click(function(){
		cnum--;
		if(cnum<0){
		cnum=rnum-4;	
		}
		$(".nav ul").animate({"left":-(cnum*134+cnum*60)},300);
	});
	
//	function autoPlay(){
//	  	cnum++;
//		if(cnum>(rnum-1)){
//		cnum=0	
//		}
//		$(".nav ul").animate({"left":-cnum*588},300);
//		$(".mke_ns1").html(cnum+1);
//	}
//	var Timer=setInterval(autoPlay,4000);
//	$(".mkeFocus").hover(function(){clearInterval(Timer)},function(){Timer=setInterval(autoPlay,4000);});
});
$(function(){
	$.ajax({
	   type: "POST",
	   url: "/implement2016/index.php?c=Main&m=notice",
	   data: "",
	   success: function(data){
	   	if (data.status == 1) {
	   		layer.open({
			    type: 1 //此处以iframe举例
			    ,title: '提示'
			    ,area: ['250px', '150px']
			    ,shade: 0
			    ,offset: 'rb' 
			    ,content: "<h3>" + data.msg + "</h3>"
			    ,btn: [] //只是为了演示
			    ,yes: function(){
			        $(that).click(); 
			    }
			    ,btn2: function(){
			        layer.closeAll();
			    }
			    ,zIndex: layer.zIndex //重点1
			    ,success: function(layero){
			        layer.setTop(layero); //重点2
			    }
			});
	   		}
	   },
	   dataType:'json',
	});
	//多窗口模式，层叠置顶
	
});
</script>
<?php $this->load->view('common/foot');?>